package com.woniuxy.services.impl;

import com.woniuxy.daos.TbRoleDao;
import com.woniuxy.entitys.TbRole;
import com.woniuxy.services.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private TbRoleDao roleDao;

    @Override
    public List<TbRole> selRoles() {
        List<TbRole> roleList = roleDao.selectRoles();
        return roleList;
    }
    @Override
    public List<TbRole> getallrole() {
        List<TbRole> getallrole = roleDao.getallrole();
        return getallrole;
    }
}
